﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PBOffice.Models;
using PBOffice.DAL;

namespace PBOffice.BLL
{
    public class PosManager
    {
        public List<Position> GetAllPos()
        {
            return new PosService().GetAllPos();
        }
        public List<Position> GetPosByDept(int depId)
        {
            return new PosService().GetPosByDept(depId);
        }
        public List<Position> GetPosByDept(string dep)
        {
            return new PosService().GetPosByDept(dep);
        }
        public void AddPosition(Position pos)
        {
            new PosService().AddPosition(pos);
        }
        public List<Position> GetPosByPosName(string name)
        {
            return new PosService().GetPosByPosName(name);
        }
        public void DeletePos(int id)
        {
            new PosService().DeletePos(id);

        }
        public void UpdatePos(Position pos)
        {
            new PosService().UpdatePos(pos);
        }
        public int GetPosIdByName(string name)
        {
            return new PosService().GetPosIdByName(name);
        }
    }
}
